package com.hopu.service.MyEmp;

import com.github.pagehelper.PageInfo;
import com.hopu.dto.MyEmpDto;
import com.hopu.entity.MyEmp;
import com.hopu.util.HouseResult;
/**
 * @Package: com.hopu.controller
 * @ClassName: MyEmpController
 * @Author: xiaoBao
 * @CreateTime: 2020/10/27 3:39
 * @Description: 【员工信息功能表现层】：实现登录验证、员工信息查询、添加、删除、修改功能
 */
public interface MyEmpService {
	/**查询所有员工信息*/
	HouseResult<PageInfo<MyEmpDto>> findAllEmpPageData(int current, int eflag);

	/**验证账号是否已存在*/
	HouseResult<MyEmp> findEmpAcccount(MyEmp myEmp);

	/**添加一条员工信息*/
	HouseResult<Object> addEmp(MyEmp myEmp);

	/**根据Id查询一条员工信息（实现修改弹窗数据回显）*/
	HouseResult<MyEmp> findEmpById(MyEmp myEmp);

	/**根据Id修改一条员工信息*/
	HouseResult<Object> uppEmpById(MyEmp myEmp);

	/**根据Id删除（撤销：软删除）一条员工信息*/
	HouseResult<Object> delEmpById(MyEmp myEmp);

	/**根据Id恢复一条已删除的员工信息*/
	HouseResult<Object> restoreEmp(MyEmp myEmp);
}
